home *** CD-ROM | disk | FTP | other *** search
- Path: news.clark.net!not-for-mail
- From: gusty@clark.net (Harlan Messinger)
- Newsgroups: comp.lang.c++
- Subject: Re: Leap year
- Date: 1 Mar 1996 17:56:20 GMT
- Organization: Clark Internet Services, Inc., Ellicott City, MD USA
- Message-ID: <4h7do4$cd4@clarknet.clark.net>
- References: <3135A7F2.2120@hiwaay.net>
- NNTP-Posting-Host: explorer.clark.net
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- X-Newsreader: TIN [UNIX 1.3 950726BETA PL0]
-
- Lance Perry (lperry@hiwaay.net) wrote:
- : Can someone be kind enough to post the formula for Leap Year
- : or point me to the place where this can be found?
- :
- : lperry@hiwaay.net
-
- bool IsLeapYear(int year) {
- return (year % 4 == 0) &&
- ( (year % 100 != 0) || (year % 400 == 0) ) ;
- }
-
-